#define _CRT_SECURE_NO_WARNINGS
#include"SList.h"

void TestList1()
{
	ListNode* plist = ListCreate();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPrint(plist);
	ListPopBack(plist);
	ListPopFront(plist);
	ListPrint(plist);
	ListNode* pos= ListFind(plist, 3);
	if (pos)
	{
		LTInsert(pos, 30);
	}
	ListPrint(plist);
	ListDestroy(plist);
	plist= NULL;
}

int main()
{
	TestList1();
	return 0;
}

